//
//  ChooseDoctorCell.m
//  KYProject
//
//  Created by Mxxx on 2016/12/22.
//  Copyright © 2016年 Roman. All rights reserved.
//

#import "ChooseDoctorCell.h"
#import <UIImageView+WebCache.h>
#import "ChooseDoctorModel.h"
@interface ChooseDoctorCell ()

@property (weak,nonatomic)IBOutlet UIImageView *imageDotor;
@property (weak,nonatomic)IBOutlet UILabel *labelName;
@property (weak,nonatomic)IBOutlet UILabel *dotorTitle;
@property (weak, nonatomic) IBOutlet UILabel *hospitalName;
@property (weak, nonatomic) IBOutlet UILabel *labelOperationCount;
@property (weak, nonatomic) IBOutlet UILabel *labelFlower;
@property (weak, nonatomic) IBOutlet UILabel *labelBanner;

//百分比
@property (weak, nonatomic) IBOutlet UILabel *accuracy;
@end

@implementation ChooseDoctorCell

- (void)awakeFromNib
{
    [super awakeFromNib];
}

#pragma mark
#pragma mark - 重写model的set方法
- (void)setModel7:(ChooseDoctorModel *)model7
{
    _model7 = model7;
    [self.imageDotor sd_setImageWithURL:[NSURL URLWithString:model7.doctor_portrait]];
    self.labelName.text = model7.doctor_name;
    self.dotorTitle.text = model7.doctor_title_name;
    self.hospitalName.text = model7.doctor_hospital_name;
    self.labelOperationCount.text = model7.operation_count;
    self.labelFlower.text = [NSString stringWithFormat:@"%zd",[model7.flower integerValue]];
    self.labelBanner.text = [NSString stringWithFormat:@"%zd",[model7.banner integerValue]];
     _accuracy.text = @"98%";
    
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];
}


@end
